	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('STT');?></th>
			<th><?php echo $this->Paginator->sort('Cấp PT');?></th>
			<th><?php echo $this->Paginator->sort('Loại PT');?></th>
			<th><?php echo $this->Paginator->sort('Tên PT');?></th>
			<th><?php echo $this->Paginator->sort('Ngày Bắt Đầu');?></th>
			<th><?php echo $this->Paginator->sort('Ngày Kết Thúc');?></th>
			<th><?php echo $this->Paginator->sort('Ghi Chú');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($phongtraokhoas as $phongtraokhoa):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td>
			<?php echo $phongtraokhoa['Cap']['tencap']; ?>
		</td>
		<td>
			<?php echo $phongtraokhoa['Loaiphongtrao']['tenloaiphongtrao']; ?>
		</td>
		<td><?php echo $phongtraokhoa['Phongtraokhoa']['tenphongtrao']; ?>&nbsp;</td>
		<td><?php echo date('d-m-Y',strtotime($phongtraokhoa['Phongtraokhoa']['ngaybatdau'])); ?>&nbsp;</td>
		<td><?php echo empty($phongtraokhoa['Phongtraokhoa']['ngayketthuc'])?'': date('d-m-Y',strtotime($phongtraokhoa['Phongtraokhoa']['ngayketthuc'])); ?>&nbsp;</td>
		<td><?php echo $phongtraokhoa['Phongtraokhoa']['ghichu']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $phongtraokhoa['Phongtraokhoa']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit',$phongtraokhoa['Phongtraokhoa']['khoa_id'],$phongtraokhoa['Phongtraokhoa']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete',$phongtraokhoa['Phongtraokhoa']['khoa_id'],$phongtraokhoa['Phongtraokhoa']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $phongtraokhoa['Phongtraokhoa']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiện có %count% mẫu tin', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>